PROJECT(bs_cps)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
INCLUDE_DIRECTORIES(src/bs_cps)
INCLUDE_DIRECTORIES(src/Comm)
SET(SRC_LIST src/bs_cps/bs_cps.cpp  src/bs_cps/CmdSock.cpp src/Comm/LfcString.cpp src/Comm/Log4c.cpp
src/Comm/TlgApp.cpp src/Comm/LfcArray_s.cpp src/Comm/LinuxBase.cpp src/Comm/SockFunc.cpp src/Comm/WfcConf.cpp  )
ADD_EXECUTABLE(bs_cps ${SRC_LIST})
#TARGET_LINK_LIBRARIES(fep pthread ssl xml2 m z WDAuthSDK1 json-c )

IF(NOT EXISTS ${EXECUTABLE_OUTPUT_PATH})
    EXEC_PROGRAM(mkdir ${PROJECT_SOURCE_DIR} ARGS ${EXECUTABLE_OUTPUT_PATH})
ENDIF()

#EXEC_PROGRAM(cp ${PROJECT_SOURCE_DIR} ARGS ${PROJECT_SOURCE_DIR}/dev_config.xml ${EXECUTABLE_OUTPUT_PATH})


INSTALL(TARGETS bs_cps
	RUNTIME DESTINATION bin
)

#INSTALL(FILES dev_config.xml
 #   DESTINATION bin
#)
